﻿namespace PayPal.ButtonManager
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class ButtonManagerException : Exception
    {
        public override string Message
        {
            get
            {
                return String.Format("{0} - {1} (Error Code: {2})", base.Message, this.LongMessage,  this.ErrorCode);
            }
        } 

        public ButtonManagerException(string errorCode, string shortMessage, string longMessage) 
            : base(shortMessage)
        {
            this.ErrorCode = errorCode;
            this.LongMessage = longMessage;            
        }
                
        public string ErrorCode { get; set; }               

        public string LongMessage { get; set; }         
    }
}
